<div class="modal-header clearfix">
    导入{{modalName}}
    <i class="yb-icon ico-close" ng-click="cancel()"></i>
</div>
<div class="modal-body row">
    <form class="form-horizontal" name="myForm">
        <div class="row">
            <div class="form-group">
                <label class="control-label col-xs-3">下载模板：</label>
                <div class="col-xs-9">
                    <button class="btn btn-default col-xs-2" yb-download download-url="templateReqUrl"  download-param="condition">下载</button>
                    <div class="col-xs-10 m-t-xs txt-show danger-color">
                        模板格式不正确，则相应的 {{modalName}} 数据不能导入
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-3">选择文件：</label>
                <div class="col-xs-9">
                    <div class="btn btn-default col-xs-2" ngf-select ngf-multiple="false" ng-model="file"
                         ng-click="ShowFlashHint()">
                        浏览
                    </div>
                    <div class="col-xs-9 m-t-xs txt-show info-color">{{file.name}}</div>
                </div>
            </div>
            <div class="form-group" ng-if="isloading">
                <div class="col-lg-offset-3 loading-group p-l-xs">
                    数据导入中，请稍候......
                </div>
            </div>
            <div class="form-group col-xs-12" ng-if="showError">
                <label class="control-label col-xs-3 text-left">包含错误信息的Excel：</label>
                <div class="col-xs-8">
                    <button class="btn btn-default col-xs-3" yb-download download-url="errorInfo.url"  download-param="errorParam">下载</button>
                    <div class="col-xs-9 m-t-xs error-block text-info">{{returnMessage}}</div>
                </div>
            </div>
        </div>
        <div class="modal-footer font-0 clearfix">
            <span class="danger-color font-14 pull-left p-t-xs" ng-if="!file && submitted">请选择整理好的文件</span>
            <button type="button" class="btn btn-primary m-r-xs" ng-click="importFile(file)" ng-disabled="!!isloading">
                导入
            </button>
            <button type="button" class="btn btn-default" ng-click="cancel()" ng-disabled="!!isloading">
                取消
            </button>
        </div>
    </form>
</div>
